package com.example.petstoreservice.mapper;

import com.example.petstoreservice.entity.Cart;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface CartMapper {
    List<Cart> getByUsername(String username);
    int updateQuantityById(int quantity, String cartId);
    int addCart(Cart cart);
    int deleteCartById(String cartId);
    Cart getCartByIds(String cartId);

    int deleteCartByProductIdAndUsername(Long productId, String userName);
}
